Skip to content

Conversation

@peter-zhong-replit
Copy link
Contributor

Why

We validate the errors which might have some schema like extra fields, then we toss them away like unwanted trash. This is bad.

What changed

The RiverServiceException class is updated to accept and store the original deserialized RiverError object.
Client sessions now pass this underlying_error when raising service exceptions, making the full error payload accessible.

Test plan

Ran ai-infra with this. The CI/CD for that will catch anything and it's also like low key just adding stuff.

@peter-zhong-replit peter-zhong-replit requested a review from a team as a code owner July 17, 2025 00:21
@peter-zhong-replit peter-zhong-replit requested review from jackyzha0 and removed request for a team July 17, 2025 00:21
@peter-zhong-replit peter-zhong-replit merged commit c5e05ce into main Jul 17, 2025
4 checks passed
@peter-zhong-replit peter-zhong-replit deleted the peter/river-exceptions-not-excepting branch July 17, 2025 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants